<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.fick.hibernate.model.*"%>
<%@ page import="com.fick.hibernate.dao.*"%>
<%@page import="com.fick.tools.SystemLogger"%>
<%@ include file="../tld/tlds.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="images/jiahao.css" rel="stylesheet" type="text/css">
		<script language="javaScript" src="js/prototype.js"></script>
		<script type="text/javascript" src="js/check.js"></script>
		<script type="text/javascript">

		  function checkForm(form){
		  	/*if(trim(form.path.value)=="" || funcChina(form.path.value)){
		  		alert("地址为能包含中文!");
		  		form.path.focus();
		  		return false;
		  	}*/
		  	form.submit();
		  }
     
     
</script>
</head>

<body>
<table width="100%"  height="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="100%" align="center" valign="top" background="images/main_bj.gif" bgcolor="#FBFCFD">

<%   VodsDAO dao=new VodsDAO();   
List vodslist=null;
String vodid=request.getParameter("vodid");
if(vodid!=null && vodid.trim().length()>0){
String sql="vod.id="+vodid;
if (vodid.equals("0"))
	sql="vod=null";
vodslist=dao.findBySql(Vods.class,"where "+sql+" order by seq ");
%>   
      <form name="addForm" action="vods.do">
      <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D7DFE1">
        <tr>
          <td width="35%" height="25" align="center" valign="middle" background="images/main_t_bj.gif" bgcolor="#FFFFFF" class="ts_lmdh">集号</td>
          <td width="10%" height="25" align="center" valign="middle" background="images/main_t_bj.gif" bgcolor="#FFFFFF" class="ts_lmdh">地址</td>
          <td width="27%" height="25" align="center" valign="middle" background="images/main_t_bj.gif" bgcolor="#FFFFFF" class="ts_lmdh">编辑</td>
        </tr>
        <%
        String[] ji={"上","中","下"};
        Vods vods=null;
			for(int i = 0 ; i < 3; i++){
				if(i<vodslist.size()){
				vods = (Vods)vodslist.get(i);
				}
		%>
        
        <tr>
        <input type="hidden" name="method" value="add"/>
        <input type="hidden" name="vodid" value="<%=vodid%>"/>
        <input type="hidden" name="vodsid" value="<%=vods!=null?vods.getId():""%>"/>
        <input type=hidden name="seq" value="<%=i%>">
          <td width="35%" height="25" align="center" valign="middle" background="images/main_t_bj.gif" bgcolor="#FFFFFF" class="ts_lmdh"><%=ji[i] %></td>
          <td width="10%" height="25" align="center" valign="middle" background="images/main_t_bj.gif" bgcolor="#FFFFFF" class="ts_lmdh"><input type="text" name="path" value="<%=vods!=null?vods.getPath():""%>"/></td>
          <td width="27%" height="25" align="center" valign="middle" background="images/main_t_bj.gif" bgcolor="#FFFFFF" class="ts_lmdh"><input type="button" value="提交" onclick="return checkForm(this.form)"></td>
        </tr>
		<%
		vods=null;
			}
		%>		
		</table>
		</form>
	</td></tr>
</table>
</body>
</html>
<%}%>